//
//  HClass.m
//  2Delegate
//
//  Created by zhengwei on 2/4/16.
//  Copyright © 2016 zhengwei. All rights reserved.
//

#import "HClass.h"

@implementation HClass
-(void)testDelegate{
    AClass *classa = [[AClass alloc]init];
    classa.Delegate = self;// 委托
    [classa myBuyTicket];
}
-(void)buyTicket{
    NSLog(@"我是黄牛 我正在帮你买票");
}
@end
